<?php

namespace Action\Contact;

class RemoveDialog extends \Library\Action\UserAction 
	implements \Library\Action\AjaxAction {
	
	private $_contact;

	public function execute() {
		parent::execute();
		
		$user_id = (int) $this->getParam( 'id' );
		$this->_contact = \Bean\User::get( $user_id );
		
		return array(
			'user_id' => $this->_contact->getUserId(),
			'content' => $this->view(),
			'icon' => $this->_contact->getMiniPath()
		);
	}
	
	public function getContact() {
		return $this->_contact;
	}

}
